#!/usr/bin/env bash

#http://source.mihelac.org/2009/10/23/django-avoiding-typing-password-for-superuser/

rm *.db -rf
python manage.py migrate cms
python manage.py migrate auth
python manage.py migrate
python manage.py cms check
echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'jean.zhang@outlook.com', 'pass')" | python manage.py shell
python manage.py collectstatic
